home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
57670
/
57670.xpi
/
chrome
/
content
/
options.xul
< prev
Wrap
Extensible Markup Language
|
2010-01-28
|
11KB
|
171 lines
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="options.css" type="text/css"?>
<!DOCTYPE clpics SYSTEM "chrome://clpics/locale/translations.dtd">
<prefwindow
title="CLPics Preferences"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script src="options.js" />
<prefpane label="&prefstitle;" onpaneload="initialize_options();">
<preferences>
<preference id="pref-enable" name="extensions.clpics.enable" type="bool" />
<preference id="pref-image-preview" name="extensions.clpics.image_preview" type="bool"/>
<preference id="pref-resize-images" name="extensions.clpics.resize_images" type="bool"/>
<preference id="pref-resize-method" name="extensions.clpics.resize_method" type="string"/>
<preference id="pref-scale" name="extensions.clpics.image_scale" type="int"/>
<preference id="pref-maxwidth" name="extensions.clpics.image_maxwidth" type="int"/>
<preference id="pref-maxheight" name="extensions.clpics.image_maxheight" type="int"/>
<preference id="pref-hover-zoom" name="extensions.clpics.hover_zoom" type="bool"/>
<preference id="pref-hover-zoom-timeout" name="extensions.clpics.hover_zoom_timeout" type="int"/>
<preference id="pref-image-limit" name="extensions.clpics.image_limit" type="int"/>
<preference id="pref-image-domain" name="extensions.clpics.image_domain" type="bool"/>
<preference id="pref-text-preview" name="extensions.clpics.text_preview" type="bool"/>
<preference id="pref-restrict-preview" name="extensions.clpics.restrict_preview" type="bool"/>
<preference id="pref-preview-height" name="extensions.clpics.preview_height" type="int"/>
</preferences>
<groupbox>
<caption label="&settings;"/>
<grid>
<columns>
<column flex="1" />
<column flex="1" />
<column flex="1" />
</columns>
<rows>
<row>
<vbox>
<checkbox id="enable" label="&enable;" preference="pref-enable"/>
<checkbox id="text-preview" preference="pref-text-preview" label="&textpreview;" onmouseup="toggle_text_options(this.checked)" />
<checkbox id="image-preview" preference="pref-image-preview" label="&imagepreview;" onmouseup="toggle_image_options(this.checked)" />
<checkbox id="resize" preference="pref-resize-images" label="&resizeimages;" onmouseup="toggle_resize_options(this.checked)" />
</vbox>
</row>
<!-- scale, max-width, max-height -->
<vbox flex="3">
<grid id="resize-options">
<columns>
<column />
<column />
<column />
</columns>
<rows>
<caption label="&imageresizesettings;"/>
<label control="resize-method" value="&resizeby;" />
<row>
<radiogroup orient="horizontal" preference="pref-resize-method" id="resize-method">
<radio value="image_scale" label="&percscale;" tooltiptext="&percscaletooltip;" />
<radio value="image_maxheight" label="&maxheight;" tooltiptext="&maxheighttooltip;" />
<radio value="image_maxwidth" label="&maxwidth;" tooltiptext="&maxwidthtooltip;" />
</radiogroup>
</row>
<grid>
<columns>
<column />
<column />
<column />
<column />
<column />
</columns>
<rows>
<hbox id="image_scale-options">
<label control="scale-text" value="&imagescale;" />
<scale id="scale"
preference="pref-scale"
min="1"
max="100"
increment="1" />
<textbox id="scale-text"
preference="pref-scale"
min="1"
max="100"
size="3"
type="number"
increment="1"
hidespinbuttons="true" />
<label control="scale-text" value="%" />
</hbox>
<row id="image_maxheight-options">
<label control="maxheight" value="&maxheight;"/>
<textbox id="maxheight"
preference="pref-maxheight"
min="1"
size="5"
type="number"
increment="1" />
<label control="maxheight" value="px"/>
</row>
<row id="image_maxwidth-options">
<label control="scale-text" value="&maxwidth;"/>
<textbox id="scale-text"
preference="pref-maxwidth"
min="1"
size="5"
type="number"
increment="1" />
<label control="maxheight" value="px"/>
</row>
<row>
<checkbox preference="pref-hover-zoom"
id="hover-zoom"
label="&fullsizeonhover;" />
<hbox>
<label control="hover-zoom-timeout"
value="&after;" />
<textbox id="hover-zoom-timeout"
size="4"
type="number"
decimalplaces="2"
increment=".25" />
</hbox>
<label control="hover-zoom-timeout" value="sec" />
</row>
</rows>
</grid>
</rows>
</grid>
<grid id="image-options" style="border:#000 solid 1px; padding:10px;">
<columns>
<column />
<column />
<column />
</columns>
<rows>
<caption label="&otherimagesettings;" />
<row tooltiptext="&limitimagestooltip;">
<label control="image-limit" value="&limitimages;" />
<textbox id="image-limit"
preference="pref-image-limit"
type="number" size="3" />
</row>
<checkbox id="domain-limit" label="&domainlimit;"
preference="pref-image-domain" tooltiptext="&domainlimittooltip;" />
</rows>
</grid>
<grid id="text-options" style="border:#000 solid 1px; padding:10px;">
<columns>
<column />
<column />
<column />
</columns>
<rows>
<caption label="&previewsettings;" />
<checkbox id="domain-limit" label="&restrictpreviewheight;"
preference="pref-restrict-preview" />
<row>
<label control="preview-height" value="&previewheight;" />
<textbox id="preview-height"
preference="pref-preview-height"
type="number" size="4" />
<label control="preview-height" value="px"/>
</row>
</rows>
</grid>
</vbox>
</rows>
</grid>
</groupbox>
</prefpane>
</prefwindow>